Object Oriented Interface ========================== .. automodule:: oopinterface :members: Terms in the LWA Column Budget ------------------------------ There are two sets of methods to compute the LWA column budget available: 1. `Nakamura and Huang, Science (2018) `_ : :py:class:`QGFieldNH18`. Eq (2), (3) with reference states solved with boundary conditions (S4) and `SOR `_. 2. `Neal et al., GRL (2022) `_ : :py:class:`QGFieldNHN22`. Eq (S5) - (S7) with reference states solved with boundary conditions (S14) - (S16) and `direct inversion `_ (since the latitudinal boundary is away from the equator, solution is guaranteed). With the LWA column budget as formulated by `Nakamura and Huang, Science (2018) `_, the output fields of :py:meth:`QGField.compute_lwa_and_barotropic_fluxes` correspond to terms as follows: .. math:: \frac{\partial}{\partial t} \boxed{ \langle A \rangle \cos(\phi) }_\mathtt{~lwa\_baro} ~ = ~ & \boxed{ - \frac{1}{a \cos(\phi)} \frac{\partial}{\partial \lambda} \langle F_{\lambda} \rangle }_\mathtt{~convergence\_zonal\_advective\_flux} \\ & \boxed{ + \frac{1}{a \cos(\phi)} \frac{\partial}{\partial \phi'} \langle u_e v_e \cos^2(\phi + \phi') \rangle }_\mathtt{~divergence\_eddy\_momentum\_flux} \\ & \boxed{ + \frac{f \cos(\phi)}{H} \left( \frac{v_e \theta_e}{\partial \tilde\theta / \partial z} \right)_{z=0} }_\mathtt{~meridional\_heat\_flux} \\ & + \langle \dot A \rangle \cos(\phi) \\ \langle F_{\lambda} \rangle ~ = ~ & \boxed{ \langle u_\mathrm{REF} A \cos(\phi) \rangle }_\mathtt{~adv\_flux\_f1} \\ & \boxed{ - a \left\langle \int_0^{\Delta\phi} u_e q_e \cos(\phi + \phi') \mathrm{d}\phi' \right\rangle }_\mathtt{~adv\_flux\_f2} \\ & \boxed{ + \frac{\cos(\phi)}{2} \left\langle v_e^2 - u_e^2 - \frac{R}{H} \frac{e^{-\kappa z / H} \theta_e^2}{\partial \tilde\theta / \partial z} \right\rangle }_\mathtt{~adv\_flux\_f3} \\ .. note:: Before version 0.7.0, the routines used in `Neal et al., GRL (2022) `_ were encapsulated in implicit functions: 1. `_interpolate_field_dirinv` 2. `_compute_qref_fawa_and_bc` 3. `_compute_lwa_flux_dirinv` With output fields of `_compute_lwa_flux_dirinv` corresponding to the terms of the LWA budget in the following way: .. math:: \frac{\partial}{\partial t} \boxed{ \langle A \rangle \cos(\phi) }_\mathtt{~astarbaro} ~ = ~ & - \frac{1}{a \cos(\phi)} \frac{\partial}{\partial \lambda} \langle F_{\lambda} \rangle \\ & - \frac{1}{a \cos(\phi)} \frac{\partial}{\partial \phi'} \boxed{ \langle F_{\phi'} \cos(\phi + \phi') \rangle }_{~\mathtt{~ep2baro} \mathrm{(north)}, \mathtt{ep3baro} \mathrm{(south)}} \\ & \boxed{ + \frac{f \cos(\phi)}{H} \left( \frac{v_e \theta_e}{\partial \tilde\theta / \partial z} \right)_{z=0} }_\mathtt{~ep4} \\ & + \langle \dot A \rangle \cos(\phi) \\ \langle F_{\lambda} \rangle ~ = ~ & \boxed{ \langle u_\mathrm{REF} A \cos(\phi) \rangle }_\mathtt{~ua1baro} \\ & \boxed{ - a \left\langle \int_0^{\Delta\phi} u_e q_e \cos(\phi + \phi') \mathrm{d}\phi' \right\rangle }_\mathtt{~ua2baro} \\ & \boxed{ + \frac{\cos(\phi)}{2} \left\langle v_e^2 - u_e^2 - \frac{R}{H} \frac{e^{-\kappa z / H} \theta_e^2}{\partial \tilde\theta / \partial z} \right\rangle }_\mathtt{~ep1baro} \\ \langle F_{\phi'} \rangle ~ = ~ & - \langle u_e v_e \cos(\phi + \phi') \rangle